import request from '../utils/request';
//获取登录验证
export const loginAddCode = () => {
  return request({
    url: '/manager/captcha',
    responseType: 'arraybuffer',
    params: {
      key: '1234qwqw',
    },
  });
};

//登录接口
export const loginApi = (data: object) => {
  return request({
    url: '/manager/login',
    method: 'POST',
    data,
  });
};
